package com.chenglu.android.goodsinfo.touch;

import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

import com.chenglu.android.R;
import com.chenglu.android.common.utils.GlideUtils;
import com.gyf.immersionbar.ImmersionBar;


public class SingleBigImgActivity extends AppCompatActivity {

    private PinchImageView imageView;

    private TextView tvNum;

    @Override

    protected void onCreate(Bundle savedInstanceState) {

        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_big_img_single);

        ImmersionBar.with(this)
                .statusBarColor(R.color.black)
                .statusBarDarkFont(true)
                .fullScreen(true)
                .init();
        initView();

    }


    protected void initView() {

        imageView = findViewById(R.id.iv_single_pic);
        tvNum = findViewById(R.id.tv_pager);
        //接收图片数据及位置
        final String imgData = getIntent().getStringExtra("imgData");

        GlideUtils.setImageView(this,imgData,imageView,5);



        imageView.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });


    }

}
